<?php foreach($groups AS $group){ ?>
	<div class="f_list_item">
		<a href="<?php echo Yii::app()->createUrl('groups/view', array('group'=>$group->id));?>" class="f_list_img">
			<?php echo isset($group->avatar_info->name) ? $this->material_image(0, $group->avatar_info->name, '100', 'groups/'. $group->id . '/' . 0) : $this->material_image(0, 'fuck', '100', 'groups/'. $group->id . '/' . 0); ?>
		</a>
		<div class="f_list_txt no_l">
			<div class="f_list_name">
				<a href="<?php echo Yii::app()->createUrl('groups/view', array('group'=>$group->id));?>"><?php echo CHtml::encode($group->name); ?></a>
			</div>
			<div class="f_list_data">
				<p><?php echo CHtml::encode( CSelect::item($group->approve, "GroupType") ); ?> группа</p>
				<p><i><?php echo CHtml::encode($group->countSubscribers); ?></i> участников</p>
			</div>
		</div>
	</div>
<?php } ?>
<?php if((count($groups) == $limit)){ ?>
	<div class="ovh">
		<div class="c">
			<div class="more_btn cc more_search" rel="<?php echo Yii::app()->createAbsoluteUrl("search/getgroups", array('offset'=>$offset, 'limit'=> $limit)); ?>">Показать больше</div>
		</div>
	</div>
<?php } ?>	